package com.lfz.quality_effect.mapper;

import com.lfz.quality_effect.model.entity.TIndexScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lfz.quality_effect.model.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 指标得分表 Mapper 接口
 * </p>
 *
 * @author Destiny
 * @since 2023-03-03
 */
public interface TIndexScoreMapper extends BaseMapper<TIndexScore> {

    /**
     * 获取分数排名
     * @param list
     * @return
     */
    List<ScoreRankVO> getScoreRank(List<String> list);

    /**
     * 获取非满分项目
     * @return
     */
    List<LepingNonPerfectVO> getNonPerfectScoreInfo();
    List<IndexScoreVO> getBatchNonPerfectScore(@Param("indexIds") List<String> indexIds, @Param("courtList") List<String> courtList);

    /**
     * 获取速裁快审排分
     * @return
     */
    List<ScoreRankVO> getJudgeQuicklyScoreInfo(String name);

    /**
     * 电子送达率
     * @param name
     * @return
     */
    List<ScoreRankVO> getElectronicDeliveryScoreInfo(String name);

    /**
     * 获取预警信息
     * @param nameList
     * @return
     */
    List<EarnWarnVO> getEarnWarningInfo(@Param("courtList") List<String> nameList,@Param("court") String court);

    /**
     * 获取非满分项的标杆法院
     * @param indexIds
     * @return
     */
    List<PolePerfectVO> getPolePerfectList(@Param("indexIds") List<String> indexIds);

    /**
     * 查找电子送达趋势图
     * @param map
     * @return
     */
    List<EleScoreRankVO> getElectronicDeliveryTrand(Map<String, Object> map);

    List<EleScoreRankVO> getAllElectronDeliveryTrend(Map<String, Object> map);

    /**
     * 查询标杆法院
     * @param paramMap
     * @return
     */
    List<EleScoreRankVO> getStandardCourt(Map<String, Object> paramMap);

    List<EleScoreRankVO> getStandardCourtByJudge(Map<String, Object> paramMap);

}
